<%--
  Created by IntelliJ IDEA.
  User: zhan
  Date: 2018/9/9
  Time: 15:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户列表</title>
</head>
<body>
<table width="100%" border=1>
    <tr>
        <td>ID</td>
        <td>用户名</td>
        <td>密码</td>
        <td>年龄</td>
        <td>操作</td>
    </tr>

    <c:forEach items="${list}" var="item">
        <tr>
            <td>
                <input type="checkbox" name="id" value="${item.id}">
            </td>
            <td>${item.userName}</td>
            <td>${item.userPassword}</td>
            <td>${item.age}</td>
            <td>
                <a href="${ctx}/edit?id=${item.id}">修改</a>
                <a href="${ctx}/delete?id=${item.id}">删除</a>
                <a href="${ctx}/toadd">新增</a>
            </td>
        </tr>
    </c:forEach>

    <a href="${ctx}/user/login">
        <input type="button" value="退出登录">
    </a>


</body>
</html>
